//
//  NewsDataModel.swift
//  MyNews
//
//  Created by DF-Mac on 16/12/2.
//  Copyright © 2016年 DF-Mac. All rights reserved.
//

import UIKit

class NewsDataModel: NSObject {

    /// 创建时间
    var ctime : String?
    
    /// 标题
    var title : String?
    
    /// 图片链接
    var picUrl : String?
    
    /// 新闻链接
    var url : String?
    
    
    var _description: String?
    
    
    ///给基本数据类型初始化
//    var age : Int = 0
    
//    //  ? 表示可选   ??三目运算符
    init(ctime:String?,title:String?,picUrl:String?,url:String?,description:String?) {
        
        self.ctime=ctime ?? ""
        self.picUrl=picUrl ?? ""
        self.url=url ?? ""
        self.title=title ?? ""
        self._description=description ?? ""
        
    }
//    init(dict: [String : AnyObject]) {
//        
//        super.init()
//        
//        setValuesForKeys(dict)
//    }
}
